<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>v-on的使用</title>
		<script src="vue.js"></script>
	</head>

	<body>
		<div id="app">
			<p>{{msg}}</p>
			<br />
			<p v-text="msg"></p>
		</div>

		<script>
			var vm = new Vue({
				el: '#app',
				data: {
					msg: '我来也'
				}
			})
		</script>
	</body>

</html>